<?php
//////////////////////////////////////
// Class Registration System 		//
// CPSC 462				      		//
// Login Page                  		//
// Trent Robbins & Richard Heywood 	//
//////////////////////////////////////

date_default_timezone_set('America/New_York');
include('Website.class.php');

$css = '';

/*Jquery files and a Javascript file written for this page*/
$js = '';
/*$js .= '<script type="text/javascript" src="./js/jquery/jquery.form.js"></script>
		<script type="text/javascript" src="./js/jquery/jquery.validate.min.js"></script>
		<script type="text/javascript" src="./js/jquery/jquery.validate.additional.js"></script>
		<script type="text/javascript" src="./js/jquery/jquery-ui-1.8rc1.custom.min.js"></script>';
$js .= "<script type='text/javascript'>".file_get_contents('./js/main.js')."</script>";*/

$mainPage = new Website();

$body = '<div id="login"><br />
			Please enter your Clemson Userid and Password.<br /><br />';
			
			/*If there are errors during Login, Ajax will fill in this div with error info*/
$body .='	<div id="loginErr" name="loginErr"></div>';

			/*The form for the login information*/
$body .='	<form id="loginForm" action="formHandler.php" method="post" autocomplete="off">';

				/*This hidden div tells formHandler.php what type of form this is.
				  This makes it easy to add more forms later if needed.*/
$body .='		<input type="hidden" name="form" value="0" id="Hid_loginForm"/>
				Username: <input type="text" id="uname0" name="uname" /><br />
				Password: <input type="password" id="pwd0" name="pwd" /><br /><br />
				<input type="submit" value="Login" id="loginButton" name="loginButton"/><br /><br />
			</form>
		 </div>';

$mainPage->createPage('Registration System Login',$css,$js,$body);


?>
